package com.lxyk.mapper.impl;

import com.lxyk.mapper.StudentCRUDMapper;
import com.lxyk.pojo.Student;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;


/*SqlSessionDaoSupport抽象类中包含SqlSessionTemplate*/
public class StudentCRUDImpl2 extends SqlSessionDaoSupport implements StudentCRUDMapper {
    @Override
    public List<Student> selectAll() {
        return getSqlSession().getMapper(StudentCRUDMapper.class).selectAll();
    }
}
